﻿<%--Manejamos toda la Interfaz de Usuario .aspx--%>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Ofertantes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Relación de Ofertantes</h2>

    <table>
        <tr>
            <th>Acciones</th>
            <th>Código</th>
            <th>Ruc</th>
            <th>RazonSocial</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { Codigo = item.CodigoOfertante }) %> |
                <%: Html.ActionLink("Ver", "Details", new { Codigo = item.CodigoOfertante })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { Codigo = item.CodigoOfertante })%>
            </td>
            <td>
                <%: item.CodigoOfertante%>
            </td>
            <td>
                <%: item.Ruc %>
            </td>
            <td>
                <%: item.RazonSocial%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Nuevo Ofertante", "Create") %>
    </p>
</asp:Content>
